<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘商城</title>
    <!-- 字体图标 -->
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <!--mui的css文件  -->
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/category.css">
</head>

<body>
    <div class="lt-container">
        <!-- 首页头部 -->
        <div class="lt-header">
            <div class="home">
                <a href="index.html">
                    <span class="fa fa-home"></span>
                </a>
            </div>
            <h3 class="title">乐淘云海</h3>
            <div class="search">
                <a href="search.html">
                    <span class="fa fa-search"></span>
                </a>
            </div>
        </div>
        <!-- 主体 -->
        <div class="lt-main">
            <!-- 左侧一级导航 -->
            <div class="cate-nav-first">
                <div class="mui-scroll-wrapper">
                    <ul class="mui-scroll category1">
                        <!-- <li>
                            <a href="#">运动馆</a>
                        </li> -->

                    </ul>
                </div>
            </div>
            <!-- 一级导航对应的二级导航 -->
            <div class="cate-nav-second">

                <div class="mui-scroll-wrapper">
                    <ul class="mui-scroll mui-clearfix category2">
                        <!-- <li>
                            <a href="#">
                                <img src="./images/brand1.png" alt="">
                                <p>耐克</p>
                            </a>
                        </li> -->
                    
                    </ul>
                </div>
            </div>

        </div>
        <!-- 首页底部 -->
        <div class="lt-footer">
            <ul>
                <li>
                    <a href="index.html">
                        <span class="fa fa-home"></span>
                        <p>首页</p>
                    </a>
                </li>
                <li class="current">
                    <a href="category.html">
                        <span class="fa fa-bars"></span>
                        <p>分类页</p>
                    </a>
                </li>
                <li>
                    <a href="cart.html">
                        <span class="fa fa-shopping-cart"></span>
                        <p>购物车</p>
                    </a>
                </li>
                <li>
                    <a href="user.html">
                        <span class="fa fa-user"></span>
                        <p>用户中心</p>
                    </a>
                </li>

            </ul>
        </div>
    </div>

    <!-- 左侧一级导航模板 -->
    <script type="text/html" id="tmp-cate-first">
        {{each rows v i}}
            <li data-id="{{v.id}}">
                <a href="#">{{v.categoryName}}</a>
            </li>
        {{/each}}
    </script>

    <!-- 一级导航对应的二级导航模板 -->
    <script type="text/html" id="tmp-cate-second">
        {{if rows.length == 0}}
            <p style="margin: 30px">没有更多数据了.....</p>
        {{else}}
            {{each rows v i}}
                <li>
                    <a href="#">
                        <img src="{{v.brandLogo}}" alt="">
                        <p>{{v.brandName}}</p>
                    </a>
                </li>
            {{/each}}
        {{/if}}
    </script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/category.js"></script>
</body>

</html>